#include "collision.h"

Collision::Collision(Enveloppe * aA, Enveloppe * bB, AbstractSlot * asSlot) : a(aA), b(bB), sSlot(asSlot)
{
    state=1;

}

int Collision::CheckCollision()
{
    if(a->Collide(b))
    {
        sSlot->Run();
    }
}
